package com.example.fourm.services;

import com.example.fourm.dao.UserMapper;
import com.example.fourm.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


public interface IUserService {
     //注册
     void createNormalUser(User user);
     //普通的通过username进行查找用户
     User selectByUserName(String username);
     //通过username和password查找用户
     User selectByUserName(String username, String password);
     //通过Id查找用户
     User selectByPrimaryKey(Long id);

     void addOneArticleCountById(Long id);

     void subOneArticleCountById(Long id);

     //修改个人信息
     void modifyInfo(User user);

     void modifyPassword(Long id, String oldPassword ,String newPassword);

}
